package com.example.mallcoupon.feign;

import com.example.mall.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(value = "mall-member",fallbackFactory = MemberFallbackFactory.class)
public interface MemberFeignService {

	@GetMapping("/member/test")
	public String memberFeignTest();

	@PostMapping("/member/save")
	public Boolean saveFeign();
}
